/**
 * Copyright (c) 2018 软唐 All rights reserved.
 *
 * https://www.softtown.cn
 *
 * 版权所有，侵权必究！
 */

package com.softtown.modules.dapai.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.softtown.common.utils.PageUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


@Data
@ApiModel(value = "售后申请单详情")
public class CompAfterSaleDetailDTO extends PageUtils implements Serializable {

    /**
     * 主键
     * id
     * isNullAble:0
     */
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 公司id
     * isNullAble:0
     */
    @ApiModelProperty(value = "公司id")
    private Long compId;

    /**
     * 售后单id
     * isNullAble:0
     */
    @ApiModelProperty(value = "售后单id")
    private Long afterSaleId;

    /**
     * 设备id
     * isNullAble:0
     */
    @ApiModelProperty(value = "设备id")
    private Long macId;
    /**
     * 服务日期
     * isNullAble:1
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "服务日期")
    private Date serviceDate;

    /**
     * 数量
     * isNullAble:0
     */
    @ApiModelProperty(value = "数量")
    private Integer num;

    /**
     * 服务类型0:维修 1：更换
     * isNullAble:0
     */
    @ApiModelProperty(value = "服务类型0:维修 1：更换")
    private Integer serviceType;

    /**
     * 创建者
     * isNullAble:1
     */
    @ApiModelProperty(value = "创建者")
    private Long creator;

    /**
     * 创建时间
     * isNullAble:1
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createDate;

    /**
     * 更新者
     * isNullAble:1
     */
    @ApiModelProperty(value = "更新者")
    private Long updater;

    /**
     * 更新时间
     * isNullAble:1
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateDate;

    /**
     * 更新时间戳
     * isNullAble:1
     */
    @ApiModelProperty(value = "更新时间戳")
    private String updateTimestamp;

    /**
     * 逻辑删除
     * isNullAble:1,defaultVal:0
     */
    @ApiModelProperty(value = "逻辑删除")
    private Integer isDeleted;

    @ApiModelProperty(value = "产品名称")
    private String macName;

    @ApiModelProperty(value = "规格型号")
    private String macSize;

    @ApiModelProperty(value = "设备铭牌")
    private String macNameplate;


}
